package com.example.binding_recyclerview.model;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;


public class Student extends BaseObservable {

    private String name;

    //private String _name;

    private String id;

    //private String _id;

    @Bindable
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
//        if (name.equals(_name)) return;
//        _name = name;
//        notifyPropertyChanged(BR.name);
    }

   // @Bindable
    public String getId() {
        return id;
    }

    public void setId(String id) {
//        if (id.equals(_id)) return;
//        _id = id ;
//        notifyPropertyChanged(BR.id);
        this.id = id ;
    }
}
